package com.farewell.hotel.service.impl;

import com.farewell.hotel.entity.InfoSearch;
import com.farewell.hotel.mapper.InRoomInfoMapper;
import com.farewell.hotel.pojo.InRoomInfo;
import com.farewell.hotel.service.InRoomInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Farewell
 * @date 2021/4/22
 */
@Service("InRoomInfoService")
public class InRoomInfoServiceImpl implements InRoomInfoService {
    @Autowired
    private InRoomInfoMapper inRoomInfoMapper;


    @Override
    public void deleteInRoomInfo(Long id) {
        inRoomInfoMapper.deleteInRoomInfo(id);
    }

    @Override
    public void addInRoomInfo(InRoomInfo inRoomInfo) {
        inRoomInfoMapper.addInRoomInfo(inRoomInfo);
    }

    @Override
    public List<InRoomInfo> findInRoomInfo(InfoSearch inRoomInfoSearch) {
        return inRoomInfoMapper.findInRoomInfo(inRoomInfoSearch);
    }
}
